<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>添加</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="__LAYUI__/css/layui.css" media="all">
  <link rel="stylesheet" href="__CSS__/common/layui.form.css" media="all">
  <link rel="stylesheet" href="__STATIC__/plugs/font-awesome/css/font-awesome.min.css" media="all">

</head>
<body>
     <div class="layui-container">
        <form class="layui-form layui-clear" action="{:url('plan/government/add')}" method="post">
    		<div class="layui-form-item">
                <!--第一行-->
                <label class="layui-form-label">标题&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                <div class="layui-input-block">
                    <input type="text" name="title" data-sets="title" lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input" />
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline col-2">
                    <label class="layui-form-label">提交单位&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                    <div class="layui-input-inline">
                        <select class="unitId" name="unitId" lay-verify="required">
                                <option value=""></option>
                                {volist name="unitList" id="item"}
                                <option value="{$key}">{$item}</option>
                                {/volist}
                               
                        </select>
                    </div>
                </div>
                <div class="layui-inline col-2">
                    <label class="layui-form-label">灾情分类&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                    <div class="layui-input-inline">
                       <select class="typeId" name="typeId" lay-verify="required">
                            <option value=""></option>
                            {volist name="type" id="item" key="k"}
                            <option value="{$k}">{$item}</option>
                            {/volist}
                        </select>
                    </div>
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <div class="layui-inline col-2">
                    <label class="layui-form-label">简介&nbsp;<i class="layui-icon arrow">　</i></label>
                    <div class="layui-input-inline">
                        <textarea name="desc" data-sets="desc" class="layui-textarea" placeholder="请输入简介"></textarea>
                    </div>
                </div>
                <div class="layui-inline col-2">
                    <label class="layui-form-label">组织机构及职责&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                    <div class="layui-input-inline">
                        <textarea name="organization" lay-verify="required" data-sets="organization" class="layui-textarea" placeholder="请输入组织机构及职责"></textarea>
                    </div>
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <div class="layui-inline col-2">
                    <label class="layui-form-label">危险目标及特征&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                    <div class="layui-input-inline">
                        <textarea name="targetFeatures" lay-verify="required" data-sets="targetFeatures" class="layui-textarea" placeholder="请输入危险目标及特征"></textarea>
                    </div>
                </div>
                <div class="layui-inline col-2">
                    <label class="layui-form-label">辖区基本情况&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                    <div class="layui-input-inline">
                        <textarea name="basicSituation" lay-verify="required" data-sets="basicSituation" class="layui-textarea" placeholder="请输入辖区基本情况"></textarea>
                    </div>
                </div>
            </div>

             <div class="layui-form-item">
                <div class="layui-inline col-2">
                    <label class="layui-form-label">性质分类&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                    <div class="layui-input-inline">
                       <select  name="natureId" lay-verify="required">
                            <option value="1">救灾</option>
                        </select>
                    </div>
                </div>
            	<div class="layui-inline col-2">
                    <label class="layui-form-label">有效性</label>
                    <div class="layui-input-inline">
                        <input type="checkbox" checked="" name="isValid" lay-skin="switch"  lay-text="有效|无效">
                    </div>
                </div>
             </div>
			<div class="layui-form-item">
                <label class="layui-form-label">文件&nbsp;<i class="layui-icon arrow">　</i></label>
                <div class="layui-input-block">
                	<input class="layui-input upload-file" type="text" name="pathInfo">
                    <a class="layui-btn layui-btn-small btn-green" id="uploadfile" data-url="{:url('admin/api.upload/upload')}"><i class="fa fa-upload"></i></a>
                </div>
            </div>
            <input type="hidden" name="formId" value="2" >
    		<div class="layui-form-item">
                 	<div class="layui-input-block">
                         <button class="layui-btn btn-green" id="save" lay-submit lay-filter="save">保 存 </button>
                         <button class="layui-btn layui-btn-primary" type="reset">重 置</button>
                    </div>
           	</div>
        </form>
    </div>  
    <script type="text/javascript" src="__LAYUI__/layui.js"></script>
    <script type="text/javascript" src="__JS__/plan/government.js"></script>
       

</body>
</html>           

